const Router = require('koa-router');
const router = new Router();
const {db, QueryTypes} = require("../../models/db");


// 保存送货路线区域
router.post('/deliver/getStorageGps', async ctx => {
    let tenantId = ctx.user.tenantId;
    let sql = `select * from options where tenantId=${tenantId} and name='lnglat'`;
    let list = await db.query(sql, {type: QueryTypes.SELECT})
    return ctx.suc('', list);
})

module.exports = router;
